﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<TITLE>修改帖子</TITLE>
	    <link rel="stylesheet" href="kindeditor_a5/themes/default/default.css" />
	<link rel="stylesheet" href="kindeditor_a5/plugins/code/prettify.css" />
	<script charset="utf-8" src="kindeditor_a5/kindeditor.js"></script>
	<script charset="utf-8" src="kindeditor_a5/lang/zh_CN.js"></script>
	<script charset="utf-8" src="kindeditor_a5/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="neirong"]', {
				cssPath : 'kindeditor_a5/plugins/code/prettify.css',
				uploadJson : 'kindeditor_a5/jsp/upload_json.jsp',
				fileManagerJson : 'kindeditor_a5/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
<script type="text/javascript" src="ny/js/jquery.min.js"></script>
<script type="text/javascript" src="ny/js/bootstrap.min.js"></script>
<script src="ny/js/jconfirm/jquery-confirm.min.js"></script>
<link href="ny/css/bootstrap.min.css" rel="stylesheet">
<link href="ny/css/materialdesignicons.min.css" rel="stylesheet">
<link href="ny/css/style.min.css" rel="stylesheet">
<link rel="stylesheet" href="ny/js/jconfirm/jquery-confirm.min.css">
       
	</head>
<%
  String id="";
 
   %>
<script language="javascript">

function gows()
{
	document.location.href="tiezi_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
	if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"；", "");
	}
	else
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"；";
	}
}
</script>
<body>
	<div >
              <div class="card-header"><h4>帖子修改</h4></div>
              <div class="card-body">
                <form class="form-horizontal" action="updateTiezi.do" method="post" id="form1" name="form1" onSubmit="return check();"><input type="hidden" name="id" value="${tiezi.id}" />
                 
		<div class='form-group' styxlexulxie2><label class='col-md-3 control-label'>标题</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.biaoti}' name='biaoti' id='biaoti' style='width:45%' placeholder='请输入标题' /></div></div>
		 
		<div class='form-group' styxlexulxie6><label class='col-md-3 control-label'>内容</label><div class='col-md-7'><textarea name="neirong" style="width:670px;height:200px;visibility:hidden;">${tiezi.neirong}</textarea></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>板块</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.bankuai}' name='bankuai' id='bankuai' style='width:45%' placeholder='请输入板块' /></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>类型</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.leixing}' name='leixing' id='leixing' style='width:45%' placeholder='请输入类型' /></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>发布人</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.faburen}' name='faburen' id='faburen' style='width:45%' placeholder='请输入发布人' /></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>父ID</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.fid}' name='fid' id='fid' style='width:45%' placeholder='请输入父ID' /></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>附件</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.fujian}' name='fujian' id='fujian' style='width:45%' placeholder='请输入附件' /></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>审核状态</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.issh}' name='issh' id='issh' style='width:45%' placeholder='请输入审核状态' /></div></div>
        <div class='form-group'><label class='col-md-3 control-label'>添加时间</label><div class='col-md-7'><input type='text' class='form-control' value='${tiezi.addtime}' name='addtime' id='addtime' style='width:45%' placeholder='请输入添加时间' readonly /></div></div>
				 <div class="form-group">
                    <div class="col-md-9 col-md-offset-3">
                      <button class="btn btn-primary" type="submit" onClick="return checkform();"><i class="mdi mdi-check"></i> 修改</button>
                    </div>
                  </div>
                </form>
              </div>
            </div>
   </body>
</html>






